package com.linln.modules.points.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @author : pengliang
 * @version V1.0
 * @Project: timo
 * @Package com.linln.modules.points.domain
 * @Descriptio /**
 * @Project: timo
 * @Package com.linln.modules.points.domain
 * @Description: TODO
 * @date Date : 2020年12月11日 16:25
 */
@Data
@TableName("tbl_points")
public class Points {
    public Points() {
    }

    public Points(Integer pointsAmount, Integer pointsType, String explain, String date, String userId) {
        this.pointsAmount = pointsAmount;
        this.pointsType = pointsType;
        this.explain = explain;
        this.date = date;
        this.userId = userId;
    }

    @TableId(value = "points_id", type = IdType.UUID)
    private String pointsId;
    @TableField("points_amount")
    private Integer pointsAmount;
    @TableField("points_type")
    private Integer pointsType;
    @TableField("`explain`")
    private String explain;
    @TableField("date")
    private String date;
    @TableField("user_id")
    private String userId;
}
